//
//  LXLHomeTitleButton.swift
//  Weibo-YQY-test
//
//  Created by Lang on 10/12/15.
//  Copyright © 2015 Lang. All rights reserved.
//

import UIKit

class LXLHomeTitleButton: UIButton {
    override func layoutSubviews() {
        super.layoutSubviews()
        
        titleLabel?.x = 0
        imageView?.x = CGRectGetMaxX(titleLabel?.frame ?? CGRectZero) + 5
        
    }
    
    override func sizeToFit() {
        super.sizeToFit()
        width = width + 5
    }
}
